<include file="Public/min-header"/>
<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><i class="fa fa-list"></i> 秒杀设置</h3>
                    </div>
                    <div class="panel-body">
                        <div class="navbar navbar-default">
                            <div class="pull-right" style="margin: 10px">
                                <a href="javascript:history.go(-1)" data-toggle="tooltip" title=""
                                   class="btn btn-default"
                                   data-original-title="返回"><i class="fa fa-reply"></i></a>
                            </div>
                        </div>
                    </div>
                    <form class="navbar-form form-inline" id="handleposition" action="" method="post">
                        <div class="form-body">
                            <!-- <div>
                                <div class="form-group row">
                                    <div class="form-group-label col-3 text-right" style="margin-left:120px;display: inline-block;">
                                        <label class=" col-form-label">未支付订单取消时间:</label>
                                    </div>
                                    <div class="col-5 col-form-label" style="margin-left:30px;display:inline-block;vertical-align: middle;">
                                        <div class="input-group">
                                            <input class="form-control" type="number" name="unpaid"
                                                   value="<?= $setting['unpaid'] ?: 1 ?>">
                                            <span class="input-group-addon">分钟</span>
                                        </div>
                                        <div class="text-muted fs-sm">注意：不设置默认一分钟自动取消</div>
                                    </div>
                                </div>
                            </div> -->
                            <!-- <div>
                                <div class="form-group row" style="width:80%; display: flex;">
                                    <div class="form-group-label col-sm-2 text-left" style="width:120px;margin-left:145px;display: inline-block;">
                                        <label class="col-form-label">是否开启分销:</label>
                                    </div>
                                    <div class="col-sm-6 " style="display: inline-block">
                                        <label class="radio-label">
                                            <input <?= $setting['is_share'] == 0 ? "checked" : "" ?>
                                            type="radio" name="is_share" value="0">
                                            <span class="label-icon"></span>
                                            <span class="label-text">关闭</span>
                                        </label>
                                        <label class="radio-label">
                                            <input <?=$setting['is_share'] == 1 ? "checked" : "" ?>
                                            type="radio" name="is_share" value="1">
                                            <span class="label-icon"></span>
                                            <span class="label-text">开启</span>
                                        </label>
                                    </div>
                                </div>
                            </div> -->
                            <div>
                                <div class="form-group row" style="width:80%; display: flex;">
                                    <div class="form-group-label col-sm-2 text-left" style="width:120px;margin-left:145px;display: inline-block;">
                                        <label class="col-form-label">秒杀活动开关</label>
                                    </div>
                                    <div class="col-sm-6 " style="display: inline-block">
                                        <label class="radio-label">
                                            <input <?= $setting['miaosha'] == 0 ? "checked" : "" ?>
                                            type="radio" name="miaosha" value="0">
                                            <span class="label-icon"></span>
                                            <span class="label-text">关闭</span>
                                        </label>
                                        <label class="radio-label">
                                            <input <?=$setting['miaosha'] == 1 ? "checked" : "" ?>
                                            type="radio" name="miaosha" value="1">
                                            <span class="label-icon"></span>
                                            <span class="label-text">开启</span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group row text-left" style="display: block;">
                                <div class="form-group-label col-sm-2 text-right" style="height: 127px">
                                </div>
                                <div class="col-sm-6">
                                    <input class="btn btn-primary" type="button"
                                           onclick="adsubmit()" value="保存">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
</div>        <!-- /.row -->
</section>
<!-- /.content -->
</div>
<script>

    function adsubmit() {
        $('#handleposition').submit();
    }
</script>
</body>
</html>